<include file="Base:header" />

        <div id="mws-container" class="clearfix">
            <div class="container">
            	<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span class="mws-i-24 i-table-1">用户列表</span>
                        <a href="{:U("Users/add")}"><span class="mws-i-24 i-table-1" style="position: absolute; top: 22%;left: 10%;cursor: pointer;">添加用户</span></a>
                    </div>
                    <div class="mws-panel-body">
                        <table class="mws-table">
                            <thead>
                                <tr>
                                    <th>姓名</th>
                                    <th>用户名</th>
                                    <th>联系方式</th>
                                    <th>部门/用户组</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <volist name="rom" id="vo">
                                <tr class="gradeX">
                                    <td>{$vo.name}</td>
                                    <td>{$vo.username}</td>
                                    <td>{$vo.tel}</td>
                                    <td class="center">{$vo.rolename.rolename}/{}</td>
                                    <td class="center"><if condition="$vo.status eq 1">已启用<else />未启用</if></td>
                                    <td>
                                    <a href="{:U('Users/add',array('id'=>$vo['id']))}"><span>编辑</span></a>
                                    <a href="{:U('Users/del',array('id'=>$vo['id'],'table'=>'admin'))}"><span>删除</span></a>
                                    </td>
                                </tr>
                                </volist>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

</body>
</html>
